<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    //只能传二维数组，而且必须体现出键和值
    console.log(new Map([['name','aa'],['age',18]]));
    //set 
    const s=new Set([['name','aa'],['age',18]])
    console.log(s);
    console.log(new Map(s));
    //map
    const m= new Map([['name','aa'],['age',18]])
    const m1=new Map(m)
    console.log(m1,m1===m);
  </script>
</body>
</html>